package org.kfish.framework.helper;

import java.sql.Connection;

import javax.sql.DataSource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 数据库操作Helper
 * @author CK
 *
 */
public class DatabaseHelper {

	private final static Logger LOGGER = LoggerFactory.getLogger(DatabaseHelper.class);
	
	private static ThreadLocal<Connection> connContainer = new ThreadLocal<>();
	
	
	public static Connection getConnection(){
		Connection conn;
		
		conn = connContainer.get();
		
		return conn;
	}
	
}
